import request from '@/service/index.js'

export const addNewSeckillProduct = (product) => {
  return request.post('/seckill/add/product', product)
}

export const getSeckillProductList = (productName, page, pageSize) => {
  return request.get('/seckill/list/product', {
    params: {
      productName,
      page,
      pageSize,
    },
  })
}

export const deleteSeckillProduct = (productId) => {
  return request.delete('/seckill/delete/product', {
    params: {
      productId,
    },
  })
}

export const updateSeckillProduct = (product) => {
  return request.put('/seckill/update/product', product)
}
